Software as medical device